package com.example.demo.model.index.index.service;

import com.example.demo.Results.ResultClass;
import com.example.demo.model.goods.goods.entity.ShopGoods;
import com.example.demo.model.index.index.entity.ShopCartReq;
import com.example.demo.model.user.user.entity.ShopUser;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IndexService {
    ModelAndView login();

    ResultClass doLogin(HttpServletRequest request, ShopUser shopUser);

    ModelAndView index();

    ModelAndView shopCart(Integer addressId);

    ResultClass<List<ShopGoods>>  shopCartGet(List<ShopCartReq> shopCartReqs);
}
